package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 收益记录对象 profit_history
 * 
 * @author kinglu
 * @date 2021-11-30
 */
public class ProfitHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 主播编号 */
    @Excel(name = "主播编号")
    private Long getUserId;

    /** 礼物编号 */
    @Excel(name = "礼物编号")
    private Long giftId;

    /** 礼物数量 */
    @Excel(name = "礼物数量")
    private Long giftNum;

    /** 观众编号 */
    @Excel(name = "观众编号")
    private Long setUserId;


    public String getGiftName() {
        return giftName;
    }

    public void setGiftName(String giftName) {
        this.giftName = giftName;
    }

    /** 礼物信息 */
    @Excel(name = "礼物信息")
    private String giftName;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date giftTime;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGetUserId(Long getUserId) 
    {
        this.getUserId = getUserId;
    }

    public Long getGetUserId() 
    {
        return getUserId;
    }
    public void setGiftId(Long giftId) 
    {
        this.giftId = giftId;
    }

    public Long getGiftId() 
    {
        return giftId;
    }
    public void setGiftNum(Long giftNum) 
    {
        this.giftNum = giftNum;
    }

    public Long getGiftNum() 
    {
        return giftNum;
    }
    public void setSetUserId(Long setUserId) 
    {
        this.setUserId = setUserId;
    }

    public Long getSetUserId() 
    {
        return setUserId;
    }
    public void setGiftTime(Date giftTime) 
    {
        this.giftTime = giftTime;
    }

    public Date getGiftTime() 
    {
        return giftTime;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("getUserId", getGetUserId())
            .append("giftId", getGiftId())
            .append("giftNum", getGiftNum())
            .append("setUserId", getSetUserId())
            .append("giftTime", getGiftTime())
            .append("memo", getMemo())
            .toString();
    }
}
